package com.topscomm.main.config;

import com.topscomm.pub.util.SecurityUtil;
import java.util.ArrayList;
import java.util.List;

/**
 * @author wudaliang
 * @date 2022/7/2
 * @description: 生成加密串
 * @modify:
 */
public class GenerateDesScript {

    public static final String DecryptDesKey = "topscommkey";

    public static void main(String[] args) {
        List<String> list = new ArrayList<>();

        list.add("PENbaEDz$c");
//        list.add("NmJW4#S6HU");
//        list.add("NmJW4#S6HU");
//        list.add("NmJW4#S6HU");
//        list.add("NmJW4#S6HU");
//        list.add("NmJW4#S6HU");
//        list.add("NmJW4#S6HU");
//        list.add("NmJW4#S6HU");

        for (String str : list) {
            String encryptValue = SecurityUtil.encryptDes(str, DecryptDesKey);
            String decryptValue = SecurityUtil.decryptDes(encryptValue, DecryptDesKey);
            System.out.println("原：" + decryptValue + " 加密后：" + encryptValue);
        }
    }
}
